package com.weasel.im.common.service;

/**
 * Created by Dylan on 2015/12/1.
 */
public interface UserSessionRelation {

    /**
     * @param username
     * @param sessionid
     */
    void relation(String username,String sessionid);

    /**
     * @param sessionid
     * @return
     */
    String getUsernameBySessionid(String sessionid);

    /**
     * @param username
     * @return
     */
    String getSessionidByUsername(String username);
}
